package com.qf.listener.direct;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @version v1.0.0
 * @Description:
 * @author: 姜红凯
 * @date: 2022.03.11
 * @since 1.0
 */
@Component
public class DirectListener02 {

    @RabbitListener(queues = "direct_queue2")
    public void consumer(String message){
        System.out.println("消费了 队列2++++++++ : " + message);

    }
}
